package com.ly.user_system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ly.user_system.code.BaseEntity;
import com.ly.user_system.detail.BaseSysUserRoleDetail;
import com.ly.user_system.dto.BaseSysUserRoleDTO;
import io.github.linpeilie.annotations.AutoMapper;
import io.github.linpeilie.annotations.AutoMappers;
import lombok.Data;

@TableName("base_sys_user_role")
@Data
@AutoMappers({
        @AutoMapper(target = BaseSysUserRoleDTO.class),
        @AutoMapper(target = BaseSysUserRoleDetail.class)
})
public class BaseSysUserRole extends BaseEntity {


    @TableField("user_id")
    private Long userId;
    @TableField("role_id")
    private Long roleId;
}